gdk_x11_display_make_gl_context_current: move some code
authorAlexander Larsson <alexl@redhat.com>
Thu, 30 Oct 2014 15:04:28 +0000 (16:04 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 30 Oct 2014 20:04:29 +0000 (21:04 +0100)
commit869f300f0aefcff3b0302a9e4b7297e54f08c1dd
tree1f29ad33b8e94edc832f92b2c0c87f780d4991da
parent7a73ec1bb2ce41fe136523fa46aec5e809ddceb2
gdk_x11_display_make_gl_context_current: move some code

This moves the code related to the frame sync code into
the is_attached check, which means we don't have to ever
run this when making non-window-paint contexts current.

This is a minior speed thing, but the main advantage
is that it makes making a non-paint context current
threadsafe.
gdk/x11/gdkglcontext-x11.c